var util = require('../../utils/util.js');
var app = getApp();


Page({
  data: {
    bannerList: ['../../assets/img01.png', '../../assets/img01.png', '../../assets/img01.png'], //banner
    menuList: [{ img: '../../assets/ss-menu01.png', font: '持卡进场' }, { img: '../../assets/ss-menu02.png', font: '请ta健身' }, { img: '../../assets/ss-menu03.png', font: '附近门店' }, { img: '../../assets/ss-menu04.png', font: '健身小教室' }], //菜单
    starList: ['', '', '', ''],
    mendianList: ['', '', '', '', '', ''],
    classroomList: ['', '', '', '', '', ''],
    bxList: [{ text: '很多人天天年年日日月月喊着要减肥月喊着要减肥月喊着要减肥1' }, { text: '很多人天天年年日日月月喊着要减肥2' }, { text: '很多人天天年年日日月月喊着要减肥3' }],
    currentTab:0
  },

  openNearbyShop(e) {//打开地图选择位置
    wx.switchTab({
      url: '../map/map',
    })
  },

  bxListChange(e){
    this.setData({
      currentTab: e.detail.current
    }) 
  }

})